package com.yuyou.tas.lesson.service;


import com.yuyou.tas.lesson.vo.req.ReqAddBaseMaterial;
import com.yuyou.tas.lesson.vo.req.ReqUpdateBaseMaterial;
import com.yuyou.tas.service.api.lesson.dto.DtoBaseMaterial;
import com.yuyou.tas.service.api.lesson.entity.BaseMaterial;
import com.yuyou.tas.util.bean.LoginRedisObj;
import com.yuyou.tas.util.bean.Pagination;
import com.yuyou.tas.util.bean.ResBoolSimpleInfo;

import java.util.List;

public interface IBaseMaterialService {

    BaseMaterial selectByPrimaryKey(Long id);

    ResBoolSimpleInfo addMaterial(ReqAddBaseMaterial chapter, Long pId,  Integer isStan, LoginRedisObj user, Long organId);
    ResBoolSimpleInfo updatMaterial(ReqUpdateBaseMaterial chapter, Long pId, Integer isStan, LoginRedisObj user);
    ResBoolSimpleInfo delMaterial(Long id)throws Exception;

    int findMaterialCount(Pagination<DtoBaseMaterial> queryPgn);
    List<DtoBaseMaterial> findMaterialPageList(Pagination<DtoBaseMaterial> queryPgn);

    BaseMaterial selectByPKandOrgan(Long id, Long authOrganizationId);
}